<template>
  <div class="bg-[red] w-screen h-[10rem]"></div>
  <img :src="code" alt="" />
</template>

<script lang="ts" setup>
import { ref, onMounted } from 'vue'
import { getCaptcha } from '@/api/modules/login'

const show = ref(true)
const mode = ref('range')
onMounted(() => {
  getCode()
})
const code = ref('')
async function getCode() {
  const res = await getCaptcha()
  code.value = res
}

const confirm = (e: Event) => {
  console.log(e)
}
</script>
